package com.ostrich.cloud.ostrichGoodsService.infra.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.ostrich.cloud.ostrichGoodsService.common.status.GrounpByStatus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 拼团表
 * </p>
 *
 * @author Lucas
 * @since 2022-11-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("grounp_by")
@ApiModel(value="GrounpBy对象", description="拼团表")
public class GrounpBy implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "gr_id", type = IdType.AUTO)
    private Integer grId;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "拼团开始时间")
    private Date addTime;

    @ApiModelProperty(value = "SUCCESS成功|FAIL失败|GO_ON进行中")
    private GrounpByStatus status;

    @ApiModelProperty(value = "拼团商品id")
    private Integer groundGoodsId;

    @ApiModelProperty(value = "当前人数")
    private Integer currentCount;

    @ApiModelProperty(value = "拼团需要人数")
    private Integer peopleCount;


}
